package com.google.android.gms.internal;

import java.io.IOException;

public final class zzjj extends zzflm<zzjj> {
    private Integer zzbee = null;
    private zzjv zzbef = null;
    private String zzbeg = null;
    private String zzbeh = null;

    public zzjj() {
        this.zzpvl = null;
        this.zzpnr = -1;
    }

    /* access modifiers changed from: private */
    /* renamed from: zzl */
    public final zzjj zza(zzflj zzflj) throws IOException {
        while (true) {
            int zzcxx = zzflj.zzcxx();
            if (zzcxx == 0) {
                return this;
            }
            if (zzcxx == 40) {
                try {
                    int zzcym = zzflj.zzcym();
                    switch (zzcym) {
                        case 0:
                        case 1:
                        case 2:
                            this.zzbee = Integer.valueOf(zzcym);
                            break;
                        default:
                            StringBuilder sb = new StringBuilder(40);
                            sb.append(zzcym);
                            sb.append(" is not a valid enum Platform");
                            throw new IllegalArgumentException(sb.toString());
                    }
                } catch (IllegalArgumentException unused) {
                    zzflj.zzmw(zzflj.getPosition());
                    zza(zzflj, zzcxx);
                }
            } else if (zzcxx == 50) {
                if (this.zzbef == null) {
                    this.zzbef = new zzjv();
                }
                zzflj.zza(this.zzbef);
            } else if (zzcxx == 58) {
                this.zzbeg = zzflj.readString();
            } else if (zzcxx == 66) {
                this.zzbeh = zzflj.readString();
            } else if (!super.zza(zzflj, zzcxx)) {
                return this;
            }
        }
    }

    public final void zza(zzflk zzflk) throws IOException {
        if (this.zzbee != null) {
            zzflk.zzad(5, this.zzbee.intValue());
        }
        if (this.zzbef != null) {
            zzflk.zza(6, (zzfls) this.zzbef);
        }
        if (this.zzbeg != null) {
            zzflk.zzp(7, this.zzbeg);
        }
        if (this.zzbeh != null) {
            zzflk.zzp(8, this.zzbeh);
        }
        super.zza(zzflk);
    }

    /* access modifiers changed from: protected */
    public final int zzq() {
        int zzq = super.zzq();
        if (this.zzbee != null) {
            zzq += zzflk.zzag(5, this.zzbee.intValue());
        }
        if (this.zzbef != null) {
            zzq += zzflk.zzb(6, (zzfls) this.zzbef);
        }
        if (this.zzbeg != null) {
            zzq += zzflk.zzq(7, this.zzbeg);
        }
        return this.zzbeh != null ? zzq + zzflk.zzq(8, this.zzbeh) : zzq;
    }
}
